<!DOCTYPE html>
<html>
<head>
    {include file="../application/common/header.html" /}
</head>

<body>
    <div id="teacher_fruit_regtb">
        <form id="teacher_fruit_regForm" class="m5">
            学期：
            <select class="form-control1" name="termId" id="termId"></select>
            类别：
            <select class="form-control1" name="类别" id="类别"></select>
            教师姓名：
            <input class="form-control1" name="teacherName" id="teacherName">
            <a class="easyui-linkbutton l-btn l-btn-small" data-options="iconCls:'icon-search'" onclick="searchForm('teacher_fruit_reg')">查询</a>
            <a class="easyui-linkbutton l-btn l-btn-small" data-options="iconCls:'icon-clear'" onclick="resetForm('teacher_fruit_reg')">重置</a><br/>
        </form>
    </div>
    <table id="teacher_fruit_regdg">
        <thead>
            <tr>
                <th data-options="field:'ID',checkbox:true">ID</th>
                <th data-options="field:'学期ID',title:'学期名称',editor:{
                    type:'combobox',
                    options:{
                        editable:false,
                        panelHeight:'auto',
                        required:true,
                        valueField:'ID',
                        textField:'学期名称',
                        url:'/compent/Util/termList.html'
                    }
                },formatter:function(value,row,index){
                    return row.学期名称;
                }"></th>
                <th data-options="field:'类别',title:'类别',editor:{
                    type:'combobox',
                    options:{
                        editable:false,
                        panelHeight:'auto',
                        required:true,
                        valueField:'value',
                        textField:'text',
                        url:'/getTeacherFruitConf/类别',
                        method: 'GET'
                    }}"></th>
                <th data-options="field:'项目名称',title:'项目名称',width:200,editor:{
                    type:'textbox',options:{required:true}},formatter: function(value, row, index) {
                        return '<span class=\'note\' title=\''+value+'\'>'+ value + '</span>';
                    }"></th>
                <th data-options="field:'项目内容',title:'项目内容',width:200,editor:{type:'textbox'},
                formatter: function(value, row, index) {
                    return '<span class=\'note\' title=\''+value+'\'>'+ value + '</span>';
                }"></th>
                <th data-options="field:'教师ID',title:'姓名',editor:{
                    type:'combobox',
                    options:{
                        method:'get',
                        url: '/compent/Util/teacherList.html',
                        required:true
                    }
                },formatter:function(value,row,index){
                    return row.姓名;
                }"></th>
                <th data-options="field:'获奖级别',title:'获奖级别',editor:{
                    type:'combobox',
                    options:{
                        editable:false,
                        panelHeight:'auto',
                        valueField:'value',
                        textField:'text',
                        url:'/getTeacherFruitConf/获奖级别',
                        method:'GET'
                    }}"></th>
                <th data-options="field:'获奖等第',title:'获奖等第',editor:{
                    type:'combobox',
                    options:{
                        editable:false,
                        panelHeight:'auto',
                        valueField:'value',
                        textField:'text',
                        url:'/getTeacherFruitConf/获奖等第',
                        method: 'GET'
                    }}"></th>
                <th data-options="field:'获奖时间',title:'获奖时间',editor:{
                    type:'datebox',options:{required:true}}"></th>
                <th data-options="field:'立项时间',title:'立项时间',editor:{
                    type:'datebox'}"></th>
                <th data-options="field:'结题时间',title:'结题时间',editor:{
                    type:'datebox'}"></th>
                <th data-options="field:'颁发单位',title:'颁发单位',editor:{
                    type:'textbox'}"></th>
                <th data-options="field:'加分',title:'加分',editor:{
                    type:'numberbox'}"></th>
                <th data-options="field:'备注',title:'备注',width:200,editor:{
                    type:'textbox'},
                formatter: function(value, row, index) {
                    return '<span class=\'note\' title=\''+value+'\'>'+ value + '</span>';
                }"></th>
            </tr>
        </thead>
    </table>

    <script type="text/javascript">
        $(function(){
            var url = "/fruit/teacher_fruit_reg";
            initDatagridAdmin("teacher_fruit_reg",url,1,1,1,1,1);
            termList("teacher_fruit_reg");
            getTeacherFruitConf("teacher_fruit_reg","类别");
        })  
    </script>
</body>
</html>